home *** CD-ROM | disk | FTP | other *** search
-
- var Africa = new Array(
- "Algeria|AGC",
- "Angola|AOC",
- "Benin|BNC",
- "Botswana|BCC",
- "Burkina|UVC",
- "Cameroon|CMC",
- "Chad|CDC",
- "Congo|CFC",
- "Cote D'Ivoire|IVC",
- "Djibouti|DJC",
- "Egypt|EGC",
- "Ethiopia|ETC",
- "Gabon|GBC",
- "Ghana|GHC",
- "Guinea|GVC",
- "Guinea-Bissau|PUC",
- "Kenya|KEC",
- "Liberia|LIC",
- "Libya|LYC",
- "Madagascar|MAC",
- "Mali|MLC",
- "Morocco|MOC",
- "Mozambique|MZC",
- "Namibia|WAC",
- "Niger|NGC",
- "Nigeria|NIC",
- "Reunion|REC",
- "Rwanda|RWC",
- "Senegal|SGC",
- "Sierra Leone|SLC",
- "Somalia|SOC",
- "South Africa|SFC",
- "Sudan|SUC",
- "Swaziland|WZC",
- "The Gambia|GAC",
- "Togo|TOC",
- "Tunisia|TSC",
- "Uganda|UGC",
- "United Republic of Tanzania|TZC",
- "Zaire|ZRC",
- "Zambia|ZAC",
- "Zimbabwe|ZIC"
- );
- var Asia = new Array(
- "Afghanistan|AFC",
- "Bangladesh|BGC",
- "China|CHC",
- "India|INC",
- "Japan|JAC",
- "Kazakhstan|KZC",
- "Kyrgyzstan|KGC",
- "Macau|MCC",
- "Mongolia|MGC",
- "Nepal|NPC",
- "North Korea|KNC",
- "Pakistan|PKC",
- "South Korea|KSC",
- "Sri Lanka|CEC",
- "Taiwan|TWC",
- "Turskmenistan|TXC",
- "Uzbekistan|UZC"
- );
-
- var SoutheastAsia = new Array(
- "Burma|BMC",
- "Cambodia|CBC",
- "Indonesia|IDC",
- "Laos|LAC",
- "Malaysia|MYC",
- "Philippines|RPC",
- "Singapore|SNC",
- "Thailand|THC",
- "Vietnam|VMC"
- );
- var AustraliaAndNewZealand = Array (
- "Australia|ASC",
- "New Zealand|NZC"
- );
-
- var Caribbean = new Array (
- "Anguilla|AVC",
- "Antigua and Barbuda|ACC",
- "Aruba|AAC",
- "Barbados|BBC",
- "Cayman|CJC",
- "Cuba|CUC",
- "Dominican Republic|DRC",
- "Grenada|GJC",
- "Guadeloupe|GPC",
- "Haiti|HAC",
- "Jamaica|JMC",
- "Martinique|MBC",
- "Netherlands Antilles|NTC",
- "Puerto Rico|RQC",
- "Saint Lucia|STC",
- "Trinidad and Tobago|TDC",
- "Virgin Islands (U.S.)|VQC"
- );
- var CentralAmerica = new Array(
- "Belize|BHC",
- "Costa Rica|CSC",
- "El Salvador|ESC",
- "Guatemala|GTC",
- "Honduras|HOC",
- "Nicaragua|NUC",
- "Panama|PMC");
-
- var Europe = new Array (
- "Albania|ALC",
- "Austria|AUC",
- "Belgium|BEC",
- "Bosnia and Herzogovina|BKC",
- "Bulgaria|BUC",
- "Croatia|HRC",
- "Cyprus|CYC",
- "Czech Republic|EZC",
- "Denmark|DAC",
- "Finland|FIC",
- "France|FRC",
- "Germany|GMC",
- "Greece|GRC",
- "Hungary|HUC",
- "Iceland|ICC",
- "Ireland|EIC",
- "Italy|ITC",
- "Latvia|LGC",
- "Liechtenstein|LSC",
- "Luxembourg|LUC",
- "Moldovia|MDC",
- "Monaco|MNC",
- "Montenegro|MWC",
- "Netherlands|NLC",
- "Norway|NOC",
- "Poland|PLC",
- "Portugal|POC",
- "Romania|ROC",
- "Russia|RSC",
- "Serbia|SRC",
- "Spain|SPC",
- "Sweden|SWC",
- "Switzerland|SZC",
- "Ukraine|UPC",
- "United Kingdom|UKC"
- );
-
-
- var MiddleEast = new Array (
- "Armenia|AMC",
- "Azerbaijan|AJC",
- "Bahrain|BAC",
- "Georgia|GGC",
- "Iran|IRC",
- "Iraq|IZC",
- "Israel|ISC",
- "Jordan|JOC",
- "Kuwait|KUC",
- "Lebanon|LEC",
- "Oman|MUC",
- "Saudi Arabia|SAC",
- "Syria|SYC",
- "Turkey|TUC",
- "United Arab Emirates|TCC",
- "West Bank|WEC",
- "Yemen|YMC"
- );
-
- var NorthAmerica = new Array (
- "Bahamas|BFC",
- "Bermuda|BDC",
- "Greenland|GLC",
- "Canada|CAC",
- "Mexico|MXC");
-
- var SouthAmerica = new Array (
- "Argentina|ARC",
- "Bolivia|BOC",
- "Brazil|BRC",
- "Chile|CLC",
- "Colombia|COC",
- "Ecuador|ECC",
- "Paraguay|PYC",
- "Peru|PEC",
- "Uruguay|UYC",
- "Venezuela|VEC"
- );
- var PacificIslands= new Array (
- // "Federated Islands Of Micronesia|FMC",
- "Fiji|FJC",
- "French Polynesia|FPC",
- // "Guam|GQC",
- // "Marshall Islands|RMC",
- "Papua New Guinea|PPC",
- "Solomon Islands|BPC",
- "Wake Island|WQC"
- );
- var NONE = new Array(" ");
- var RegionList = new Array (Africa, Asia, SoutheastAsia, AustraliaAndNewZealand, Caribbean, CentralAmerica,
- Europe, MiddleEast, NorthAmerica,SouthAmerica, PacificIslands);
- var RegionName = new Array ("Africa", "Asia", "SoutheastAsia", "AustraliaAndNewZealand", "Caribbean", "CentralAmerica",
- "Europe", "MiddleEast", "NorthAmerica","SouthAmerica", "PacificIslands");
-
-
- //--------------------------------------------------------------------------------------------
- // FillInRegionFromCountry
- //--------------------------------------------------------------------------------------------
- function FillInRegionFromCountry(country)
- {
- if (country.length==0)
- {
- window.document.all("stWRegion").value="";
- return;
- }
- var serchStr = "|"+ country;
- for (i=0; i<RegionList.length; i++)
- for (j=0; j<RegionList[i].length; j++)
- {
- if (RegionList[i][j].indexOf (serchStr) >= 0)
- {
- window.document.all("stWRegion").value = "st-" + RegionName[i];
- return;
- }
- }
- }
-
- //--------------------------------------------------------------------------------------------
- // WRegionOnChange
- //--------------------------------------------------------------------------------------------
- function WRegionOnChange()
- {
- var selRegion = stWRegion.value;
- switch (selRegion) {
- case "st-Africa":
- UpdateCountrylist (Africa);
- break;
- case "st-Asia":
- UpdateCountrylist (Asia);
- break;
- case "st-SoutheastAsia":
- UpdateCountrylist (SoutheastAsia);
- break;
- case "st-AustraliaAndNewZealand":
- UpdateCountrylist (AustraliaAndNewZealand);
- break;
- case "st-Caribbean":
- UpdateCountrylist (Caribbean);
- break;
- case "st-CentralAmerica":
- UpdateCountrylist (CentralAmerica);
- break;
- case "st-Europe":
- UpdateCountrylist (Europe);
- break;
- case "st-MiddleEast":
- UpdateCountrylist (MiddleEast);
- break;
- case "st-NorthAmerica":
- UpdateCountrylist (NorthAmerica);
- break;
- case "st-SouthAmerica":
- UpdateCountrylist (SouthAmerica);
- break;
- case "st-PacificIslands":
- UpdateCountrylist (PacificIslands);
- break;
- case "":
- case " ":
- UpdateCountrylist (NONE);
- }
-
- WCountrySetCityList ();
- }
-
- //--------------------------------------------------------------------------------------------
- // UpdateCitylist
- //--------------------------------------------------------------------------------------------
- function UpdateCountrylist(countryArray)
- {
- var numOpt = window.document.all.stWCountry.options.length;
- for (i=numOpt-1; i>=0; i--)
- window.document.all.stWCountry.options.remove(i);
- for (var i=0; i<countryArray.length; i++)
- {
- var index = countryArray[i].indexOf ("|");
- var strDisplay = countryArray[i].substr (0, index);
- var strValue = countryArray[i].substr (index+1, countryArray[i].length);
- var oOption = document.createElement("OPTION");
- if (0 == i)
- oOption.selected = true;
- oOption.text=strDisplay;
- oOption.value=strValue;
- oOption.id = strValue;
- window.document.all.stWCountry.add(oOption);
- }
- return;
- }
-
- function WRegionSetCountryList()
- {
- WRegionOnChange ();
- }
-
-